package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.Category;

/**
 * @author ghy
 * @version v1.0
 * create on 2022/11/18 12:01
 */
public interface CategoryService extends IService<Category> {

    /**
     * 根据条件查询
     * @param category
     * @return
     */
    R findList(Category category);

    /**
     * 根据ID删除
     * @param id
     * @return
     */
    R deleteById(Long id);

    /**
     * 修改
     * @param category
     * @return
     */
    R modify(Category category);

}
